织梦cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 织梦cms >

织梦channelartlist标签不支持currentstyle属性怎么办

来源:互联网  作者:网友投稿  发布时间:2021-01-07 07:05
织梦channelartlist标签不支持currentstyle属性怎么办 。打开include\taglib\channelartlist.lib.php 找到 $pv-Fields[typeurl] = GetOneTypeUr...

打开include\taglib\channelartlist.lib.php 找到 $pv-Fields[typeurl] = GetOneTypeUrlA($typeids[$i]); 在此行代码下方增加以下代码: if($typeids[$i][id] == $refObj-TypeLink-TypeInfos[id] || $typeids[$i][id] == $refObj-TypeLink-TypeInfos[topid] ){ $pv-Fields[currentstyle] = $currentstyle ? $currentstyle : current; } else{ $pv-Fields[currentstyle] = ; } 网上找到的一般没有加$typeids[$i][id] ==$refObj-TypeLink-TypeInfos[topid] 添加这个后才能对二级栏目也起作用 调用方法: {dede:channelartlist typeid=2 currentstyle=current} li class={dede:field.currentstyle/}a href={dede:field name=typeurl/} {dede:field name=typename/}/a/li ,也 ,, {/dede:channelartlist} 如果是当前栏目则 li的class属性显示current,否则显示class= , 织梦channelartlist标签不支持currentstyle属性怎么办 ,,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jz/dedecms/11725.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

织梦channelartlist标签不支持currentstyle属性怎么办

2021-01-07 编辑:网友投稿

打开include\taglib\channelartlist.lib.php 找到 $pv-Fields[typeurl] = GetOneTypeUrlA($typeids[$i]); 在此行代码下方增加以下代码: if($typeids[$i][id] == $refObj-TypeLink-TypeInfos[id] || $typeids[$i][id] == $refObj-TypeLink-TypeInfos[topid] ){ $pv-Fields[currentstyle] = $currentstyle ? $currentstyle : current; } else{ $pv-Fields[currentstyle] = ; } 网上找到的一般没有加$typeids[$i][id] ==$refObj-TypeLink-TypeInfos[topid] 添加这个后才能对二级栏目也起作用 调用方法: {dede:channelartlist typeid=2 currentstyle=current} li class={dede:field.currentstyle/}a href={dede:field name=typeurl/} {dede:field name=typename/}/a/li ,也 ,, {/dede:channelartlist} 如果是当前栏目则 li的class属性显示current,否则显示class= , 织梦channelartlist标签不支持currentstyle属性怎么办 ,,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jz/dedecms/11725.shtml

相关文章

风云图片

推荐阅读

返回织梦cms频道首页